<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>JSON Voorhees: jsonv::dynamic_merge_rules Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script src="http://www.mathjax.org/mathjax/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">JSON Voorhees
   </div>
   <div id="projectbrief">Killer JSON for C++</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classjsonv_1_1dynamic__merge__rules.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classjsonv_1_1dynamic__merge__rules-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">jsonv::dynamic_merge_rules Class Reference<div class="ingroups"><a class="el" href="group__Utility.html">Utility</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>An implementation of <code><a class="el" href="classjsonv_1_1merge__rules.html" title="This class is used in merge_explicit for defining what the function should do in the cases of conflic...">merge_rules</a></code> that allows you to bind whatever functions you want to resolve conflicts.  
 <a href="classjsonv_1_1dynamic__merge__rules.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="util_8hpp_source.html">jsonv/util.hpp</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for jsonv::dynamic_merge_rules:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
 <div class="center">
  <img src="classjsonv_1_1dynamic__merge__rules.png" usemap="#jsonv::dynamic_merge_rules_map" alt=""/>
  <map id="jsonv::dynamic_merge_rules_map" name="jsonv::dynamic_merge_rules_map">
<area href="classjsonv_1_1merge__rules.html" title="This class is used in merge_explicit for defining what the function should do in the cases of conflic..." alt="jsonv::merge_rules" shape="rect" coords="0,0,172,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a29fe0c62cc07e94743574c0724eba1cd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a29fe0c62cc07e94743574c0724eba1cd"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>same_key_function</b> = std::function&lt; <a class="el" href="classjsonv_1_1value.html">value</a>(<a class="el" href="classjsonv_1_1path.html">path</a> &amp;&amp;, <a class="el" href="classjsonv_1_1value.html">value</a> &amp;&amp;, <a class="el" href="classjsonv_1_1value.html">value</a> &amp;&amp;)&gt;</td></tr>
<tr class="separator:a29fe0c62cc07e94743574c0724eba1cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a125092931e0d6818157f0d5b83764314"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a125092931e0d6818157f0d5b83764314"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>type_conflict_function</b> = std::function&lt; <a class="el" href="classjsonv_1_1value.html">value</a>(<a class="el" href="classjsonv_1_1path.html">path</a> &amp;&amp;, <a class="el" href="classjsonv_1_1value.html">value</a> &amp;&amp;, <a class="el" href="classjsonv_1_1value.html">value</a> &amp;&amp;)&gt;</td></tr>
<tr class="separator:a125092931e0d6818157f0d5b83764314"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a086358681f7981f221ed1eac7c133e3d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a086358681f7981f221ed1eac7c133e3d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>dynamic_merge_rules</b> (same_key_function same_key, type_conflict_function type_conflict)</td></tr>
<tr class="separator:a086358681f7981f221ed1eac7c133e3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a058fd362ff4f1e0d2549916b787ac97d"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classjsonv_1_1value.html">value</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1dynamic__merge__rules.html#a058fd362ff4f1e0d2549916b787ac97d">resolve_same_key</a> (<a class="el" href="classjsonv_1_1path.html">path</a> &amp;&amp;current_path, <a class="el" href="classjsonv_1_1value.html">value</a> &amp;&amp;a, <a class="el" href="classjsonv_1_1value.html">value</a> &amp;&amp;b) const override</td></tr>
<tr class="separator:a058fd362ff4f1e0d2549916b787ac97d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5aa7e53481c06ba09f9c166aaf833f50"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classjsonv_1_1value.html">value</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classjsonv_1_1dynamic__merge__rules.html#a5aa7e53481c06ba09f9c166aaf833f50">resolve_type_conflict</a> (<a class="el" href="classjsonv_1_1path.html">path</a> &amp;&amp;current_path, <a class="el" href="classjsonv_1_1value.html">value</a> &amp;&amp;a, <a class="el" href="classjsonv_1_1value.html">value</a> &amp;&amp;b) const override</td></tr>
<tr class="separator:a5aa7e53481c06ba09f9c166aaf833f50"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:aa350455dea22605bfc08cc26bc0bdc94"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa350455dea22605bfc08cc26bc0bdc94"></a>
same_key_function&#160;</td><td class="memItemRight" valign="bottom"><b>same_key</b></td></tr>
<tr class="separator:aa350455dea22605bfc08cc26bc0bdc94"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca4bf8ce4c484f224bc176d11309b86a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aca4bf8ce4c484f224bc176d11309b86a"></a>
type_conflict_function&#160;</td><td class="memItemRight" valign="bottom"><b>type_conflict</b></td></tr>
<tr class="separator:aca4bf8ce4c484f224bc176d11309b86a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>An implementation of <code><a class="el" href="classjsonv_1_1merge__rules.html" title="This class is used in merge_explicit for defining what the function should do in the cases of conflic...">merge_rules</a></code> that allows you to bind whatever functions you want to resolve conflicts. </p>

<p>Definition at line <a class="el" href="util_8hpp_source.html#l00057">57</a> of file <a class="el" href="util_8hpp_source.html">util.hpp</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a058fd362ff4f1e0d2549916b787ac97d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classjsonv_1_1value.html">value</a> jsonv::dynamic_merge_rules::resolve_same_key </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classjsonv_1_1path.html">path</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>current_path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classjsonv_1_1value.html">value</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classjsonv_1_1value.html">value</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classjsonv_1_1merge__rules.html#ab29737fbd64ca6ce54caf47062079b2e" title="Called when merging a kind::object and the two objects share a key. ">merge_rules::resolve_same_key</a> </dd></dl>

<p>Implements <a class="el" href="classjsonv_1_1merge__rules.html#ab29737fbd64ca6ce54caf47062079b2e">jsonv::merge_rules</a>.</p>

</div>
</div>
<a class="anchor" id="a5aa7e53481c06ba09f9c166aaf833f50"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="classjsonv_1_1value.html">value</a> jsonv::dynamic_merge_rules::resolve_type_conflict </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classjsonv_1_1path.html">path</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>current_path</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classjsonv_1_1value.html">value</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classjsonv_1_1value.html">value</a> &amp;&amp;&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classjsonv_1_1merge__rules.html#afc104e701ff41714a9e084cb68f7700d" title="Called when a and b have kind values which are incompatible for merging. ">merge_rules::resolve_type_conflict</a> </dd></dl>

<p>Implements <a class="el" href="classjsonv_1_1merge__rules.html#afc104e701ff41714a9e084cb68f7700d">jsonv::merge_rules</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>jsonv/<a class="el" href="util_8hpp_source.html">util.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>jsonv</b></li><li class="navelem"><a class="el" href="classjsonv_1_1dynamic__merge__rules.html">dynamic_merge_rules</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
  </ul>
</div>
</body>
</html>
